Remove unneeded GtkColorSelectionDialog accessors
authorTim Janik <timj@src.gnome.org>
Fri, 20 Jun 2008 11:10:08 +0000 (11:10 +0000)
committerTim Janik <timj@src.gnome.org>
Fri, 20 Jun 2008 11:10:08 +0000 (11:10 +0000)
svn path=/trunk/; revision=20624

gtk/gtk.symbols
gtk/gtkcolorseldialog.c
gtk/gtkcolorseldialog.h

index f0e604149bdd3d4e5f5b59f2ca9d787ffb790fd9..d4fd8b4eade1f9fc333aebbc5e46a50dd48a1881 100644 (file)
@@ -830,10 +830,7 @@ gtk_color_selection_set_previous_color
 #if IN_FILE(__GTK_COLOR_SELECTION_DIALOG_C__)
 gtk_color_selection_dialog_get_type G_GNUC_CONST
 gtk_color_selection_dialog_new
-gtk_color_selection_dialog_get_cancel_button
 gtk_color_selection_dialog_get_color_selection
-gtk_color_selection_dialog_get_help_button
-gtk_color_selection_dialog_get_ok_button
 #endif
 #endif
 
index 356e450b8cc8a9355b867f6a242076c45d3de40f..92ac87d9bb9f97d867ccfc674b1e62a17e7e432d 100644 (file)
@@ -198,49 +198,9 @@ gtk_color_selection_dialog_new (const gchar *title)
 GtkWidget*
 gtk_color_selection_dialog_get_color_selection (GtkColorSelectionDialog *colorsel)
 {
-  return colorsel->colorsel;
-}
-
-/**
- * gtk_color_selection_dialog_get_ok_button:
- * @colorsel: a #GtkColorSelectionDialog
- *
- * Retrieves the OK button of the dialog.
- *
- * Since:  GSEAL-branch
- **/
-GtkWidget*
-gtk_color_selection_dialog_get_ok_button       (GtkColorSelectionDialog *colorsel)
-{
-  return colorsel->ok_button;
-}
+  g_return_val_if_fail (GTK_IS_COLOR_SELECTION (colorsel), NULL);
 
-/**
- * gtk_color_selection_dialog_get_cancel_button:
- * @colorsel: a #GtkColorSelectionDialog
- *
- * Retrieves the cancel button of the dialog.
- *
- * Since:  GSEAL-branch
- **/
-GtkWidget*
-gtk_color_selection_dialog_get_cancel_button   (GtkColorSelectionDialog *colorsel)
-{
-  return colorsel->cancel_button;
-}
-
-/**
- * gtk_color_selection_dialog_get_help_button:
- * @colorsel: a #GtkColorSelectionDialog
- *
- * Retrieves the help button of the dialog.
- *
- * Since:  GSEAL-branch
- **/
-GtkWidget*
-gtk_color_selection_dialog_get_help_button     (GtkColorSelectionDialog *colorsel)
-{
-  return colorsel->help_button;
+  return colorsel->colorsel;
 }
 
 static void
index c8a04509a20b0a1a32e7df5c60fef8726eae3dc8..395883693ab3e728035461726f1819f9d03a4b90 100644 (file)
@@ -75,9 +75,6 @@ struct _GtkColorSelectionDialogClass
 GType      gtk_color_selection_dialog_get_type            (void) G_GNUC_CONST;
 GtkWidget* gtk_color_selection_dialog_new                 (const gchar *title);
 GtkWidget* gtk_color_selection_dialog_get_color_selection (GtkColorSelectionDialog *colorsel);
-GtkWidget* gtk_color_selection_dialog_get_ok_button       (GtkColorSelectionDialog *colorsel);
-GtkWidget* gtk_color_selection_dialog_get_cancel_button   (GtkColorSelectionDialog *colorsel);
-GtkWidget* gtk_color_selection_dialog_get_help_button     (GtkColorSelectionDialog *colorsel);
 
 
 G_END_DECLS